Adwaita: set color on flat buttons in selected list-rows
authorLapo Calamandrei <calamandrei@gmail.com>
Sat, 6 Sep 2014 15:09:08 +0000 (17:09 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Sat, 6 Sep 2014 15:09:08 +0000 (17:09 +0200)
gtk/resources/theme/Adwaita/_common.scss
gtk/resources/theme/Adwaita/gtk-contained-dark.css
gtk/resources/theme/Adwaita/gtk-contained.css

index ca7bf5a645b2459904a53ae331c2bcec4049ef79..bad740ca3ebc7710271c6566bcbbed55d4608ced 100644 (file)
@@ -2257,7 +2257,10 @@ GtkScrolledWindow {
   .button {
     @include button(normal, $edge:none);
     @if $variant == 'light' { border-color: $selected_borders_color; }
-    &.flat { @include button(undecorated, $edge:none); }
+    &.flat {
+      @include button(undecorated, $edge:none);
+      color: $selected_fg_color;
+    }
     &:hover {
       @include button(hover, $edge:none);
       @if $variant == 'light' { border-color: $selected_borders_color; }
@@ -2282,7 +2285,10 @@ GtkScrolledWindow {
         }
       }
     }
-    &.flat:backdrop { @include button(undecorated); }
+    &.flat:backdrop {
+      @include button(undecorated);
+      color: if($variant=='light', $backdrop_base_color, $backdrop_fg_color);
+    }
     &:insensitive {
       @include button(insensitive, $edge:none);
       @if $variant == 'light' { border-color: $selected_borders_color; }
@@ -2781,9 +2787,6 @@ GtkVolumeButton.button { padding: 8px; }
   @if $variant == 'light' {
     outline-color: transparentize($selected_fg_color, 0.7);
   }
-  &:backdrop {
-    @if $variant == 'light' { color: $backdrop_base_color; }
-    @else { color: $backdrop_fg_color; };
-  }
+  &:backdrop { color: if($variant=='light', $backdrop_base_color,
+                                            $backdrop_fg_color); }
 }
-
index 62047905d76bfc2188611e5bd5e6827eff603fce..a8f9346bd390679945bc608ffd6d3521151eec2e 100644 (file)
@@ -3383,7 +3383,8 @@ GtkCalendar.header .list-row.button.titlebutton {
     background-image: none;
     box-shadow: inset 0 1px rgba(255, 255, 255, 0);
     text-shadow: none;
-    icon-shadow: none; }
+    icon-shadow: none;
+    color: #ffffff; }
   .list-row:selected .button:hover {
     color: #eeeeec;
     outline-color: rgba(238, 238, 236, 0.3);
@@ -3474,7 +3475,8 @@ GtkCalendar.header .list-row.button.titlebutton {
     background-image: none;
     box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(238, 238, 236, 0);
     text-shadow: none;
-    icon-shadow: none; }
+    icon-shadow: none;
+    color: #c9cbc9; }
   .list-row:selected .button:insensitive {
     color: #939695;
     border-color: #1c1f1f;
index 415ef161fbb46632ad35f3022ac3a44260715a56..1453805526d4337f3a7478fc2e5aeca049160a14 100644 (file)
@@ -3534,7 +3534,8 @@ GtkCalendar.header .list-row.button.titlebutton {
     background-image: none;
     box-shadow: inset 0 1px rgba(255, 255, 255, 0);
     text-shadow: none;
-    icon-shadow: none; }
+    icon-shadow: none;
+    color: #ffffff; }
   .list-row:selected .button:hover {
     color: #2e3436;
     outline-color: rgba(46, 52, 54, 0.3);
@@ -3631,7 +3632,8 @@ GtkCalendar.header .list-row.button.titlebutton {
     background-image: none;
     box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(255, 255, 255, 0);
     text-shadow: none;
-    icon-shadow: none; }
+    icon-shadow: none;
+    color: #fcfcfc; }
   .list-row:selected .button:insensitive {
     color: #8d9091;
     border-color: #a1a1a1;